<?php include THEMES_PATH . 'public/before_body2.phtml';?>
<link href="/statics/front/css/cart.css" rel="stylesheet">
</head>
<body>
<?php include THEMES_PATH . 'public/header2.phtml';?>
<div id="cart" class="main-width">
  <div class="currentpath"><a href="<?php echo url('');?>"><?php echo L('index')?></a> >> <?php echo L('pay_result')?></div>
  <div class="callback">
    <?php if(isset($message) && $message): ?>
    <h3 class="callback-title align-center"><?php echo $message; ?></h3>
    <?php endif; ?>
    <table width="100%" align="center" cellspacing="0" cellpadding="0" class="callback-list">
      <tbody>
        <?php if (isset($orderInfo)): ?>
        <tr>
          <td width="50%" align="right" class="referral"><?php echo L('ordersn')?>:</td>
          <td width="50%"><?php echo isset($orderInfo['order_sn'])? $orderInfo['order_sn'] : null;?> </td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('shipping_method')?>:</td>
          <td><?php echo isset($orderInfo['shipping_method_name'])? $orderInfo['shipping_method_name'] : null;?></td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('payment_method')?>:</td>
          <td><?php echo isset($orderInfo['payment_method_name']) ? $orderInfo['payment_method_name'] : null;?></td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('order_create_time')?>:</td>
          <td><?php echo isset($orderInfo['start_time'])? date('F d, Y H:i:s',$orderInfo['start_time']) : null;?></td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('order_confirm_time')?>:</td>
          <td><?php echo isset($orderInfo['confirm_time'])? date('F d, Y H:i:s',$orderInfo['confirm_time']) : null;?></td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('order_pay_time')?>:</td>
          <td><?php echo isset($orderInfo['payment_time'])? date('F d, Y H:i:s',$orderInfo['payment_time']) : null;?></td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('paid_amount')?>:</td>
          <td style="color:#f00;"><?php echo isset($orderInfo['pay_amount']) ? currency($orderInfo['pay_amount']) : null?></td>
        </tr>
        <?php endif;?>
        <tr>
          <td align="center" class="referral" colspan="2">
              <b id="wait"><?php echo($wait); ?></b> <?php echo L('_second_')?> <a id="href" href="<?php echo($jumpUrl); ?>"><?php echo L('automatic_jump')?></a>
          </td>
        </tr>
      </tbody>
    </table>
    <?php if($orderInfo['order_sn']): ?>
    <img src="https://shareasale.com/sale.cfm?amount=<?php echo $orderInfo['pay_amount'] ?>&tracking=<?php echo $orderInfo['order_sn'] ?>&transtype=TYPEOFTRANSACTION&merchantID=55810" width="1" height="1">
    <img src="https://track.linksynergy.com/ep?mid=39950&ord=<?php echo $orderInfo['order_sn'];?>&skulist=<?php echo $buttJoint['skulist'];?>&qlist=<?php echo $buttJoint['qlist'];?>&amtlist=<?php echo $buttJoint['amtlist'];?>&cur=<?php echo $buttJoint['currency'];?>&img=1">
    <!-- BEGIN OF FLEXOFFERS.COM TRACKING CODE -->
    <img src="http://track.flexlinks.com/tracker.aspx?AID=8176d503-0b05-4b66-9517-5c189f512eed&AMT=<?php echo $orderInfo['pay_amount'];?>&CMM=&UID=<?php echo $orderInfo['order_sn'];?>" width="1" height="1" alt=""/>
    <!-- END OF FLEXOFFERS.COM TRACKING CODE -->
    <img src="https://conversion.adcenter.infolinks.com/conversion/?pixel=1&aid=189587" height="1" width="1">
    <img border="0" src="http://www.ownonly.com/affiliate/sale.php?profile=72198&idev_saleamt=<?php echo $orderInfo['pay_amount'];?>&idev_ordernum=<?php echo $orderInfo['order_sn'];?>" width="1" height="1">
    <?php endif; ?>
  </div>
</div>
<?php include THEMES_PATH.'public/footer2.phtml';?>

<?php if($orderInfo['order_sn']): ?>
<script type='text/javascript'>
!function(d,s) {
  var rc = d.location.protocol + "//go.referralcandy.com/purchase/l11wbh5vf3sxa30zfvfb9d4v2.js";
  var js = d.createElement(s);
  js.src = rc;
  var fjs = d.getElementsByTagName(s)[0];
  fjs.parentNode.insertBefore(js,fjs);
}(document,"script");
</script>	
<?php endif; ?>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
  var time = --wait.innerHTML;
  if(time <= 0) {
    location.href = href;
    clearInterval(interval);
  }
}, 1000);
})();
</script>
<!-- Facebook Conversion Code for Checkouts - Guoyao Sun 1 -->
<script>(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
var fbds = document.createElement('script');
fbds.async = true;
fbds.src = '//connect.facebook.net/en_US/fbds.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(fbds, s);
_fbq.loaded = true;
}
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', '6021327342029', {'value':'<?php echo $orderInfo['pay_amount'] ?>','currency':'USD'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6021327342029&;amp;cd[value]=<?php echo $orderInfo['pay_amount'] ?>&amp;cd[currency]=USD&amp;noscript=1" /></noscript>
<?php
include THEMES_PATH.'public/after_body.phtml';